package com.my.cd.interpret;

import java.util.Map;

/**
 * 具体表达式：乘法表达式
 */
public class MultiExpression extends SymbolExpression {

    public MultiExpression(AbstractExpression _left, AbstractExpression _right) {
        super(_left, _right);
    }

    @Override
    public Float interpreter(Map<String, Float> var) {
        return super.left.interpreter(var) * super.right.interpreter(var);
    }

}
